package com.reporter;

import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.SwingUtilities;
import javax.swing.UIManager;
import javax.swing.UIManager.LookAndFeelInfo;
import javax.swing.UnsupportedLookAndFeelException;

public class App {

	public static void main(String[] args) {
		try {
//			for (LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) {
//				if ("Nimbus".equals(info.getName())) {
//					UIManager.setLookAndFeel(info.getClassName());
//					break;
//				}
//				else{
					UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
//				}			

//			} 
		}
		catch (UnsupportedLookAndFeelException e) {
	       // handle exception
	    }
	    catch (ClassNotFoundException e) {
	       // handle exception
	    }
	    catch (InstantiationException e) {
	       // handle exception
	    }
	    catch (IllegalAccessException e) {
	       // handle exception
	    }

		SwingUtilities.invokeLater(new Runnable() {
			@Override
			public void run() {
				JFrame frame = new MainFrame("Reporter");
				frame.setIconImage(new ImageIcon(this.getClass().getResource("transparency_icon.png")).getImage());
				frame.setSize(280, 259);
				frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
				frame.setResizable(false);
				frame.setLocation(100, 100);
				frame.setAlwaysOnTop(false);
				frame.setVisible(true);
			}
		});
				
	}
	

}
